home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17728 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: belle.bork.com!news
  2. From: scottr@belle.bork.com (Randy Scott)
  3. Newsgroups: comp.lang.c++,rec.games.programmer,alt.msdos.programmer,comp.programming
  4. Subject: Re: Young programmers read me.
  5. Followup-To: comp.lang.c++,rec.games.programmer,alt.msdos.programmer,comp.programming
  6. Date: 16 Apr 1996 19:24:06 -0500
  7. Organization: Bork Systems Group
  8. Message-ID: <4l1dn6$j3@belle.bork.com>
  9. References: <4icpp9$7hr@barad-dur.nas.com> <4keejc$lpi@tpd.dsccc.com> <Pine.OSF.3.91.960411093444.20958D-100000@bud.cc.swin.edu.au> <4kmfqn$e0f@airdmhor.gen.nz> <4kubt3$2jk@plains.nodak.edu> <4l0c8p$rvp@fountain.mindlink.net>
  10. NNTP-Posting-Host: belle.bork.com
  11. X-Newsreader: TIN [UNIX 1.3 BETA-950824-color PL0]
  12.  
  13. Gene Wirchenko (genew@mindlink.bc.ca) wrote:
  14. : >Try this:
  15. : >       if(something_happened) do_something_else();
  16. :      Not as clear as it should be by my standards.  YMMV.
  17.  
  18. NOT CLEAR?  Hello?  That piece of code is just about as clear as it
  19. gets!
  20.  
  21. : >or this:
  22. : >       if(something_happened)
  23. : >       {   do_something_else(); }
  24. :      Extraneous braces cause pause.
  25.  
  26. I would have to agree, use braces only when absolutely necessary.
  27.  
  28.  
  29. Randy Scott
  30.